package com.tang.subject.application.controller.converter;

import com.tang.subject.application.controller.dto.SubjectAnswerDTO;
import com.tang.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO convertDtoToBo(SubjectAnswerDTO subjectInfoDTO);
    List<SubjectAnswerBO> convertDtoToBoList(List<SubjectAnswerDTO> subjectInfoDTO);
    List<SubjectAnswerDTO> convertBoToDtoList(List<SubjectAnswerBO> subjectAnswerBOList);

}
